import {_fetch} from "./request"

function getPhoneCode(data) {
    return _fetch({
        url: '/sendsms',
        method: 'post',
        data:data
    })
}

function toRegister(data) {
    return _fetch({
        url: '/register',
        method: 'post',
        data:data
    })
}





export {getPhoneCode ,toRegister}